package cn.edu.neu.springbootdemo.mapper;


import cn.edu.neu.springbootdemo.model.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface UserMapper {
    void addUser(User user);   //注册，增
    //查询有没有这个用户，a，
    int existUser(User user);   //1使用count查以a为名字的用户
    User existsUser(User user); //2查以a为名字的用户
    List<User> getUserList(User user);
    User getUser(String userid);
}
//cn.edu.neu.springbootdemo.mapper.UserMapper